import platgo as pg
import matplotlib.pyplot as plt

problem = pg.problems.CF1()
N = 100
maxgen = 100
Algorithm = pg.algorithms.CCMO(maxgen=maxgen, problem=problem, operator=2)
pop = Algorithm.go(N=N)
print(pop)
pf = problem.get_optimal()
plt.xlim((0, 1.5))
plt.ylim((0, 1.5))
plt.scatter(pf[:, 0], pf[:, 1], c="k", s=[5])
Algorithm.draw()
